package club.justwill.single.persistence.support;

import java.io.Serializable;

/**
 * Created by xiangnan on 16-1-29.
 */
public class InvatationPK implements Serializable {
    public InvatationPK() {}
    private Long inviterId;
    private Long inviteeId;

    @Override
    public int hashCode() {
        int result = 17;
        result = 37 * result + (int) (inviterId ^ (inviterId >>> 32));
        result = 37 * result + (int) (inviteeId ^ (inviteeId >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object o) {
        if (!(o instanceof InvatationPK))
            return false;
        InvatationPK unit = (InvatationPK) o;
        return unit.inviteeId == inviteeId
                && unit.inviterId == inviterId;
    }
    public Boolean canEqual(Object other) {
        return other instanceof InvatationPK;
    }

    public Long getInviterId() {
        return inviterId;
    }

    public void setInviterId(Long inviterId) {
        this.inviterId = inviterId;
    }

    public Long getInviteeId() {
        return inviteeId;
    }

    public void setInviteeId(Long inviteeId) {
        this.inviteeId = inviteeId;
    }
}
